{template "content","header_sub"}
    <div class="content_warp">&nbsp;
      <div class="content_l">
        <div class="sub_nav">
          <dl>
            <dt>获奖作品</dt>
            <dd class="on"><a href="javascript:;" onfocus="blur()">小学书画组</a></dd>
            <dd><a href="javascript:;" onfocus="blur()">初中绘画组</a></dd>
            <dd><a href="javascript:;" onfocus="blur()">初中书法篆刻组</a></dd>
          </dl>
        </div>
        <div class="sub_img"><img src="phpcms/templates/default/statics/imgs/contact.jpg"/></div>
      </div>
      <div class="content_r">
        <!-- 小学组书画组 -->
        <div>
          <span class="en_title">Award winning works</span><br/>
          <span class="cn_title">小学书画组获奖作品</span>
        </div>

        {php $larger_types = array(1,2,3)}
        {loop $larger_types $larger_type}
        <!-- 获奖作品 -->
        <div class="winart_items" {if $larger_type > 1}style="display:none"{/if}>
          <div class="winart_nav">
            <div class="l"><img src="phpcms/templates/default/statics/imgs/left.gif"/></div>
            <div class="r"><img src="phpcms/templates/default/statics/imgs/right.gif"/></div>
            <div class="winart_ul">
            	<ul>
              	<li><span class="on">金奖作品</span></li><li>&nbsp|&nbsp</li>
              	<li><span>银奖作品</span></li><li>|</li>
              	<li><span>铜奖作品</span></li>
            	</ul>
            </div>
            <div class="clear"></div>
          </div> <!-- winart_nav -->
          <div class="clear"></div>
          {php $small_types = array(1,2,3)}
          {loop $small_types $small_type}
          <!-- 金银铜奖 -->
          <div class="winart_content"  {if $small_type > 1}style="display:none"{/if}>
            <div class="winart_item">
            {php $where = "larger_type=" . $larger_type . " and small_type=" .$small_type }
            {pc:content action="lists" catid="$catid" where="$where" order="id DESC" return="winarts" moreinfo="1"}
              {php $num = 0}
              {loop $winarts $winart}
                {php $num++; $display="style='display:block';";}
                {if $num > 3}
                  {php $display = "style='display:none';";}
                {/if}
              <!-- winart_box -->
              <div class="winart_box" {$display}>
                {if $num%2 <> 0}
                <div class="thmb"><a href={$winart[thumb]} rel="lightbox"><img src={$winart[thumb]}></img></a></div>
                {/if}
                <div class="winart">
                <h1 style="padding:18px;">{$winart[title]}</h1>
                <div class="info-box">
                  <ul class="info">
                    <li>作者：{$winart[author]}</li>
                    <li>学校：{$winart[schoolname]}</li>
                    <li>班级：{$winart[classname]}</li>
                    <li>指导老师：{$winart[teacher]}</li>
                  </ul>
                  <div class="detail">
                  {$winart[content]}
                  </div>
                </div>
              </div>
                {if $num%2 == 0}
                  <div class="thmb">
                  {if $winart[thumb] <> ""}
                  	<a href={$winart[thumb]} rel="lightbox"><img src={$winart[thumb]}></img></a>
                  {else}
                    <a href="phpcms/templates/default/statics/imgs/error.jpg" rel="lightbox">
                	<img src="phpcms/templates/default/statics/imgs/error.jpg"></img>
                  	</a>
                  	
                  {/if}
                 </div>
                {/if}
                  <div class="clear"></div>
               </div><!-- winart_box -->
              {/loop}
            {/pc}
            </div><!-- winart_item -->
            <div class="show_page_nav">
            {php $pages_my = floor(($num+2)/3) }
            {if $pages_my > 1}
              <ul class='pagination' title='分页列表'>
                <li><span class="firstPage disable">&lt;&lt;</span></li>
                <li><span class="previousPage disable">&lt;</span></li>
                <?php
                for ($i = 1; $i <= $pages_my; $i++) {
                  $defcss = "";
                  if($i == 1) {
                    $defcss = "currentState";
                  }
                ?>
                <li><span class="pagelinks {$defcss}">{$i}</span></li>
                <?php } ?>
                <li><span class="nextPage">&gt;</span></li>
                <li><span class="lastPage">&gt;&gt;</span></li>
              </ul>
            {/if}
              <div class="clear"></div>
            </div>
          </div><!-- winart_content -->
          {/loop}
        </div><!-- winart_items -->
        {/loop}
      </div><!-- content_r -->
    </div><!-- content_warp -->
{template "content","footer"}
<script src="{JS_PATH}lightbox/jquery-1.7.2.min.js"></script>
<script src="{JS_PATH}lightbox/lightbox.js"></script>
<script src="phpcms/templates/default/statics/js/winart.js"></script>